//
//  TravelNotesCell.swift
//  TravelNotes
//
//  Created by 千锋 on 16/8/17.
//  Copyright © 2016年 胡光健. All rights reserved.
//

import UIKit

class TravelNotesCell: UITableViewCell {

    @IBOutlet weak var mainImageView: UIImageView!
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var pieceTogetherLabel: UILabel!
   
    var model: TravelNotesModel! {
        
        didSet {
            mainImageView.sd_setImageWithURL(NSURL(string: self.model.front_cover_photo_url!), placeholderImage: UIImage(named: ""))
            nameLabel.text = self.model.name
            pieceTogetherLabel.text = "\(model.start_date!)/\(model.days!)/\(model.photos_count!)"
        }
    }
}
